﻿using BigEgg.Framework.Foundation;

namespace FMStudio.Templates.DesignTool.Application.Models
{
    public abstract class ToolboxItem : ValidationModel
    {
        #region Fields
        private string typeName;
        private bool enabled;
        #endregion

        public ToolboxItem(string typeName)
        {
            this.typeName = typeName;
            this.enabled = true;
        }

        #region Properties
        public string TypeName
        {
            get { return this.typeName; }
        }

        public bool Enabled
        {
            get { return this.enabled; }
            set
            {
                if (this.enabled != value)
                {
                    this.enabled = value;
                    RaisePropertyChanged("Enabled");
                }
            }
        }
        #endregion
    }
}
